package com.zjeav.lingjiao.base.service;

import com.zjeav.lingjiao.base.response.AccessToken;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface WXAccessTokenService {

    @POST("access_token?")
    @FormUrlEncoded
    Observable<AccessToken> getAccessToken(
            @Field("appid") String appid,
            @Field("secret") String secret,
            @Field("code") String code,
            @Field("grant_type") String grant_type
    );

}
